diff options
| author | Joe Carstairs <65492573+joeacarstairs@users.noreply.github.com> | 2024-10-13 17:49:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-13 17:49:03 +0100 |
| commit | 7eea6da108ab664cdc0e1a2691159cfafa981ac7 (patch) | |
| tree | 0e08447045bf28ab4210be7a9a0238eef9037168 /src/pages/[locale]/submit.astro | |
| parent | 2febffe5e3036c4b35dff4a8b274f42a7f8fef42 (diff) | |
| parent | dcdc91cbd06b82b042e601f792a1a5b08d9b82ce (diff) | |
Merge pull request #104 from joeacarstairs/staging
Update
Diffstat (limited to 'src/pages/[locale]/submit.astro')
| -rw-r--r-- | src/pages/[locale]/submit.astro | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/pages/[locale]/submit.astro b/src/pages/[locale]/submit.astro new file mode 100644 index 0000000..599b9b6 --- /dev/null +++ b/src/pages/[locale]/submit.astro @@ -0,0 +1,21 @@ +--- +import Page from '$layouts/Page.astro'; +import localeStaticPaths from '$lib/localeStaticPaths'; +import translate from '$i18n/translate'; +import tPage from '$i18n/translations/pages/submit'; +import type Locale from '$types/Locale'; + +export async function getStaticPaths() { + return localeStaticPaths; +} + +const locale = Astro.params.locale as Locale; +const t = translate(locale); +--- + +<Page title={t(tPage, { key: 'title' })}> + <section> + <h2 set:html={t(tPage, { key: 'title' })} /> + <p set:html={t(tPage, { key: '105-submissions-full' })} /> + </section> +</Page> |
